<?php

namespace app\admin\validate;

use think\Validate;

class UserInfo extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'username' => 'require',
        'mobile' => 'require',
        'uid' => 'require',
        'uuid' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'username' => '姓名不能为空',
        'mobile' => '手机号不能为空',
        'uid' => '新增失败',
        'uuid' => '新增失败',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['username','mobile'],
        'edit' => ['username','mobile']
    ];
    
}
